package com.ruoyi.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.client.mapper.SysMedicalTypeMapper;
import com.ruoyi.client.domain.SysMedicalType;
import com.ruoyi.client.service.ISysMedicalTypeService;

/**
 * 器械类别 Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-14
 */
@Service
public class SysMedicalTypeServiceImpl implements ISysMedicalTypeService 
{
    @Autowired
    private SysMedicalTypeMapper sysMedicalTypeMapper;

    /**
     * 查询器械类别 
     * 
     * @param medTypeId 器械类别 主键
     * @return 器械类别 
     */
    @Override
    public SysMedicalType selectSysMedicalTypeByMedTypeId(Long medTypeId)
    {
        return sysMedicalTypeMapper.selectSysMedicalTypeByMedTypeId(medTypeId);
    }

    /**
     * 查询器械类别 列表
     * 
     * @param sysMedicalType 器械类别 
     * @return 器械类别 
     */
    @Override
    public List<SysMedicalType> selectSysMedicalTypeList(SysMedicalType sysMedicalType)
    {
        return sysMedicalTypeMapper.selectSysMedicalTypeList(sysMedicalType);
    }

    /**
     * 新增器械类别 
     * 
     * @param sysMedicalType 器械类别 
     * @return 结果
     */
    @Override
    public int insertSysMedicalType(SysMedicalType sysMedicalType)
    {
        return sysMedicalTypeMapper.insertSysMedicalType(sysMedicalType);
    }

    /**
     * 修改器械类别 
     * 
     * @param sysMedicalType 器械类别 
     * @return 结果
     */
    @Override
    public int updateSysMedicalType(SysMedicalType sysMedicalType)
    {
        return sysMedicalTypeMapper.updateSysMedicalType(sysMedicalType);
    }

    /**
     * 批量删除器械类别 
     * 
     * @param medTypeIds 需要删除的器械类别 主键
     * @return 结果
     */
    @Override
    public int deleteSysMedicalTypeByMedTypeIds(Long[] medTypeIds)
    {
        return sysMedicalTypeMapper.deleteSysMedicalTypeByMedTypeIds(medTypeIds);
    }

    /**
     * 删除器械类别 信息
     * 
     * @param medTypeId 器械类别 主键
     * @return 结果
     */
    @Override
    public int deleteSysMedicalTypeByMedTypeId(Long medTypeId)
    {
        return sysMedicalTypeMapper.deleteSysMedicalTypeByMedTypeId(medTypeId);
    }
}
